import {request} from "@@/plugin-request/request";

/** 获取举报信息 GET /api/admin/report/report */
export async function getReportSearch(params?: Admin.ReportQueryParams, options?: { [key: string]: any }) {
  return request<Admin.PageQueryVO<Admin.ReportResult>>('/api/admin/report/report', {
    method: 'GET',
    params:params,
    ...(options || {}),
  });
}
/** 修改举报信息 POST /api/admin/report/update */
export async function updateReport(params:Admin.ReportResult, options?: { [key: string]: any }){
  return request<boolean>('/api/admin/report/update',{
    method:'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data:params,
    ...(options||{}),
  })
}
/** 删除举报信息 GET /api/admin/report/delReport/ */
export async function deleteReport(id:number,options?: { [key: string]: any }) {
  return request<boolean>('/api/admin/report/delReport/'+id,{
    method: 'GET',
    ...(options||{}),
  })
}
